package cn.disicn.controller;

import com.jfinal.aop.Clear;
import com.jfinal.core.Controller;

import cn.disicn.service.JobTypeService;

public class IndexController extends Controller {

	private static final JobTypeService JOB_TYPE_SERVICE = new JobTypeService();
	
	public void index() {
		if(!getRequest().getRequestURI().equals("/")){
			renderError(404);
		}
		render("index.jsp");
	}

	@Clear
	public void login() {
		render("login.jsp");
	}
	
	@Clear
	public void register() {
		render("register.jsp");
	}
	
	public void bizJobsList() {
		render("bizJobsList.jsp");
	}
	
	public void voucherCenter() {
		render("voucherCenter.jsp");
	}

	public void userInfo() {
		render("userInfo.jsp");
	}
	
	public void realNameAuth() {
		render("realNameAuth.jsp");
	}
	
	public void changePwd() {
		render("changePwd.jsp");
	}
	
	public void newBizJobs() {
		// 查询所有任务类型并转发
		setAttr("allJobType", JOB_TYPE_SERVICE.getAllJobType());
		render("newBizJobs.jsp");
	}
	
}
